import axios from './http'
import QS from 'qs'
import base from './base'

//login登录
export function playerLogin(data) {
    return axios({
        url: `${base.url}/login`,
        method: 'post',
        data: QS.stringify(data)
    })
}
//玩家信息
export function playerInfo(data){
    return axios({
        url:`${base.url}/player/playerinfo`,
        method:'post',
        data:QS.stringify(data)
    })
}
//新手引导
export function noviceGuide(data){
    return axios({
        url:`${base.url}/player/noviceguide`,
        method:'post',
        data:QS.stringify(data)
    })
}
//玩家充值分布
export function playerRecharge(data){
    return axios({
        url:`${base.url}/player/playrecharge`,
        method:'post',
        data:QS.stringify(data)
    })
}
//玩家积分查询
export function playerPoints(data){
    return axios({
        url:`${base.url}/player/playerpoints`,
        method:'post',
        data:QS.stringify(data)
    })
}
//角色整容练度
export function roleZr(data){
    return axios({
        url:`${base.url}/role/rolezr`,
        method:'post',
        data:QS.stringify(data)
    })
}
//玩家充值查询
export function Reacharge(data){
    return axios({
        url:`${base.url}/role/recharge`,
        method:'post',
        data:QS.stringify(data)
    })
}
//挂机关卡
export function HangUp(data){
    return axios({
        url:`${base.url}/role/hangup`,
        method:'post',
        data:QS.stringify(data)
    })
}
//种族抽
export function Race(data){
    return axios({
        url:`${base.url}/payment/race`,
        method:'post',
        data:QS.stringify(data)
    })
}
//每日礼包查询
export function Gift(data){
    return axios({
        url:`${base.url}/payment/gift`,
        method:'post',
        data:QS.stringify(data)
    })
}
//档位充值
export function Gearecharge(data){
    return axios({
        url:`${base.url}/payment/gearecharge`,
        method:'post',
        data:QS.stringify(data)
    })
}
//商城购买
export function ShopBuy(data){
    return axios({
        url:`${base.url}/payment/shopbuy`,
        method:'post',
        data:QS.stringify(data)
    })
}
//抽卡统计
export function Lottery(data){
    return axios({
        url:`${base.url}/payment/lottery`,
        method:'post',
        data:QS.stringify(data)
    })
}
//付费角色排行
export function FeeRolePh(data){
    return axios({
        url:`${base.url}/payment/feeroleph`,
        method:'post',
        data:QS.stringify(data)
    })
}
//查询公告信息
export function getOss(data){
    return axios({
        url:`${base.url}/gmtool/getOss`,
        method:'post',
        data:QS.stringify(data)
    })
}
//获取公告中str
export function getOssStr(data){
    return axios({
        url:`${base.url}/gmtool/getOssStr`,
        method:'post',
        data:QS.stringify(data)
    })
}
//删除公告
export function delOss(data){
    return axios({
        url:`${base.url}/gmtool/delOss`,
        method:'post',
        data:QS.stringify(data)
    })
}
//保存公告
export function saveOss(data){
    return axios({
        url:`${base.url}/gmtool/saveOss`,
        method:'post',
        data:QS.stringify(data)
    })
}
//禁用服务器
export function disableServer(data){
    return axios({
        url:`${base.url}/gmtool/disableServer`,
        method:'post',
        data:QS.stringify(data)
    })
}
//启用服务器
export function enableServer(data){
    return axios({
        url:`${base.url}/gmtool/enableServer`,
        method:'post',
        data:QS.stringify(data)
    })
}
//新建服务器
export function addServer(data){
    return axios({
        url:`${base.url}/gmtool/addServer`,
        method:'post',
        data:QS.stringify(data)
    })
}
//编辑服务器
export function updServer(data,id){
    return axios({
        url:`${base.url}/gmtool/updServer/${id}`,
        method:'post',
        data:QS.stringify(data)
    })
}
//禁用服务器组
export function disableServerGroup(data){
    return axios({
        url:`${base.url}/gmtool/disableServerGroup`,
        method:'post',
        data:QS.stringify(data)
    })
}
//启用服务器组
export function enableServerGroup(data){
    return axios({
        url:`${base.url}/gmtool/enableServerGroup`,
        method:'post',
        data:QS.stringify(data)
    })
}
//新建服务器组
export function addServerGroup(data){
    return axios({
        url:`${base.url}/gmtool/addServerGroup`,
        method:'post',
        data:QS.stringify(data)
    })
}
//编辑服务器组
export function updServerGroup(data,id){
    return axios({
        url:`${base.url}/gmtool/updServerGroup/${id}`,
        method:'post',
        data:QS.stringify(data)
    })
}
//获取服务器组信息
export function getServerGroup(){
    return axios({
        url:`${base.url}/gmtool/getServerGroup`,
        method:'get'
    })
}
//get方法获取服务器列表信息
export function getServer() {
    return axios({
        url: `${base.url}/gmtool/getServer`,
        method: 'get'
    })
}
//禁用邮件
export function disableMail(data){
    return axios({
        url:`${base.url}/gmtool/disableMail`,
        method:'post',
        data:QS.stringify(data)
    })
}
//启用邮件
export function enableMail(data){
    return axios({
        url:`${base.url}/gmtool/enableMail`,
        method:'post',
        data:QS.stringify(data)
    })
}
//新建邮件
export function addmail(data){
    return axios({
        url:`${base.url}/gmtool/addmail`,
        method:'post',
        data:QS.stringify(data)
    })
}
//编辑邮件
export function updmail(data,id){
    return axios({
        url:`${base.url}/gmtool/updmail/${id}`,
        method:'post',
        data:QS.stringify(data)
    })
}
//根据邮件id获取邮件
export function getmailId(data){
    return axios({
        url:`${base.url}/gmtool/getmailId`,
        method:'post',
        data:QS.stringify(data)
    })
}
//get方法获取邮件
export function getmail() {
    return axios({
        url: `${base.url}/gmtool/getmail`,
        method: 'get'
    })
}
//留存率-获取最早注册的时间
export function getFirstDay(data){
    return axios({
        url:`${base.url}/retention/getfirstday`,
        method:'post',
        data:QS.stringify(data)
    })
}
//留存率-获取多日留存信息
export function getRetention(data){
    return axios({
        url:`${base.url}/retention/getretention`,
        method:'post',
        data:QS.stringify(data)
    })
}